{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e17r.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}10 Sep 2016, 00:20:28
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "charity field voice expert.dta"
{txt}
{com}. 
. ren diskussion t
{res}{txt}
{com}. keep if beslutsform == 1
{txt}(119 observations deleted)

{com}. 
. 
. 
. set seed  358395
{txt}
{com}. sem (d2 <-  t  wl p)(p <-  t  wl)   , vce(cluster klassnummer)
{res}{txt}
Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d2 p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log pseudolikelihood = {res:-168.54093}  
Iteration 1:{space 3}log pseudolikelihood = {res:-168.54093}  

Structural equation model{col 49}Number of obs{col 67}= {res}        96
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log pseudolikelihood{col 20}= {res}-168.54093

{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .2346303{col 26}{space 2} .0976721{col 37}{space 1}    2.40{col 46}{space 3}0.016{col 54}{space 4} .0431965{col 67}{space 3} .4260641
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0096133{col 26}{space 2} .0275565{col 37}{space 1}   -0.35{col 46}{space 3}0.727{col 54}{space 4} -.063623{col 67}{space 3} .0443964
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0282809{col 26}{space 2} .0852856{col 37}{space 1}    0.33{col 46}{space 3}0.740{col 54}{space 4}-.1388757{col 67}{space 3} .1954376
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5254784{col 26}{space 2} .0420047{col 37}{space 1}   12.51{col 46}{space 3}0.000{col 54}{space 4} .4431508{col 67}{space 3} .6078061
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}-.0380512{col 26}{space 2} .0612719{col 37}{space 1}   -0.62{col 46}{space 3}0.535{col 54}{space 4}-.1581419{col 67}{space 3} .0820395
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1643337{col 26}{space 2} .1187943{col 37}{space 1}    1.38{col 46}{space 3}0.167{col 54}{space 4}-.0684989{col 67}{space 3} .3971663
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .7433966{col 26}{space 2}   .09588{col 37}{space 1}    7.75{col 46}{space 3}0.000{col 54}{space 4} .5554752{col 67}{space 3} .9313181
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
    var(e.d2){c |}{col 14}{res}{space 2} .0970616{col 26}{space 2} .0124453{col 54}{space 4} .0754929{col 67}{space 3} .1247926
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0734184{col 26}{space 2} .0152107{col 54}{space 4} .0489164{col 67}{space 3} .1101932
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}        96{col 27}        .{col 38}-168.5409{col 49}     5{col 58} 347.0819{col 69} 359.9036
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .2346303{col 26}{space 2} .0976721{col 37}{space 1}    2.40{col 46}{space 3}0.016{col 54}{space 4} .0431965{col 67}{space 3} .4260641
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0096133{col 26}{space 2} .0275565{col 37}{space 1}   -0.35{col 46}{space 3}0.727{col 54}{space 4} -.063623{col 67}{space 3} .0443964
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0282809{col 26}{space 2} .0852856{col 37}{space 1}    0.33{col 46}{space 3}0.740{col 54}{space 4}-.1388757{col 67}{space 3} .1954376
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}-.0380512{col 26}{space 2} .0612719{col 37}{space 1}   -0.62{col 46}{space 3}0.535{col 54}{space 4}-.1581419{col 67}{space 3} .0820395
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1643337{col 26}{space 2} .1187943{col 37}{space 1}    1.38{col 46}{space 3}0.167{col 54}{space 4}-.0684989{col 67}{space 3} .3971663
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2} -.008928{col 26}{space 2} .0149293{col 37}{space 1}   -0.60{col 46}{space 3}0.550{col 54}{space 4}-.0381888{col 67}{space 3} .0203329
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0385576{col 26}{space 2} .0401861{col 37}{space 1}    0.96{col 46}{space 3}0.337{col 54}{space 4}-.0402057{col 67}{space 3}  .117321
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .2346303{col 26}{space 2} .0976721{col 37}{space 1}    2.40{col 46}{space 3}0.016{col 54}{space 4} .0431965{col 67}{space 3} .4260641
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0185413{col 26}{space 2} .0338068{col 37}{space 1}   -0.55{col 46}{space 3}0.583{col 54}{space 4}-.0848014{col 67}{space 3} .0477189
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0668386{col 26}{space 2} .0592519{col 37}{space 1}    1.13{col 46}{space 3}0.259{col 54}{space 4}-.0492931{col 67}{space 3} .1829702
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}-.0380512{col 26}{space 2} .0612719{col 37}{space 1}   -0.62{col 46}{space 3}0.535{col 54}{space 4}-.1581419{col 67}{space 3} .0820395
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1643337{col 26}{space 2} .1187943{col 37}{space 1}    1.38{col 46}{space 3}0.167{col 54}{space 4}-.0684989{col 67}{space 3} .3971663
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d2 <-  t  wl p)(p <-  t  wl)   , vce(cluster klassnummer)
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        96
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0385576{col 26}{space 2} .0308191{col 37}{space 1}    1.25{col 46}{space 3}0.211{col 54}{space 4}-.0218468{col 67}{space 3} .0989621
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .0668386{col 26}{space 2} .0713409{col 37}{space 1}    0.94{col 46}{space 3}0.349{col 54}{space 4} -.072987{col 67}{space 3} .2066642
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        96
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .03855765{col 27}{space 2} .0008222{col 38}{space 2} .03081914{col 51}{space 2}-.0056082{col 63}{space 1} .1103712{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.0022607{col 63}{space 1} .1204362{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .06683857{col 27}{space 2}-.0026552{col 38}{space 2} .07134091{col 51}{space 2}-.0717415{col 63}{space 1} .1977263{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.0647648{col 63}{space 1} .2047532{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d2 <- wl  t  p)(p <- wl  t )    , vce(cluster klassnummer)
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        96
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} -.008928{col 26}{space 2}  .015848{col 37}{space 1}   -0.56{col 46}{space 3}0.573{col 54}{space 4}-.0399895{col 67}{space 3} .0221336
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2}-.0185413{col 26}{space 2} .0668609{col 37}{space 1}   -0.28{col 46}{space 3}0.782{col 54}{space 4}-.1495862{col 67}{space 3} .1125037
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        96
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2}-.00892796{col 27}{space 2} .0005055{col 38}{space 2} .01584804{col 51}{space 2} -.046198{col 63}{space 1} .0190175{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.0532554{col 63}{space 1} .0117229{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2}-.01854126{col 27}{space 2} .0042648{col 38}{space 2} .06686091{col 51}{space 2}-.1418552{col 63}{space 1} .1269032{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.1443233{col 63}{space 1} .1203704{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}        95
                                                {txt}F(3, 91)          =  {res}     0.74
                                                {txt}Prob > F          = {res}    0.5287
                                                {txt}R-squared         = {res}    0.0242
                                                {txt}Root MSE          =    {res} .50126

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2} .0012887{col 26}{space 2} .1126719{col 37}{space 1}    0.01{col 46}{space 3}0.991{col 54}{space 4}-.2225201{col 67}{space 3} .2250976
{txt}{space 4}interest {c |}{col 14}{res}{space 2} .1916411{col 26}{space 2} .1608893{col 37}{space 1}    1.19{col 46}{space 3}0.237{col 54}{space 4}-.1279457{col 67}{space 3}  .511228
{txt}{space 4}ideology {c |}{col 14}{res}{space 2} .1185689{col 26}{space 2} .1547463{col 37}{space 1}    0.77{col 46}{space 3}0.446{col 54}{space 4}-.1888156{col 67}{space 3} .4259533
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3704553{col 26}{space 2} .1614239{col 37}{space 1}    2.29{col 46}{space 3}0.024{col 54}{space 4} .0498065{col 67}{space 3}  .691104
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e17r.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}10 Sep 2016, 00:22:00
{txt}{.-}
{smcl}
{txt}{sf}{ul off}